Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-115

Potential NPE in QuorumCnxManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • quorum
    • None

    Description

      Findbugs flagged this, notice that we are checking for null after using the reference.

      if (senderWorkerMap.get(s.socket().getInetAddress()) != null)

      { senderWorkerMap.get(s.socket().getInetAddress()).finish(); }

      /*

      • Start new worker thread with a clean state.
        */
        if (s != null) {

      Attachments

        1. ZOOKEEPER-115.patch
          6 kB
          Flavio Paiva Junqueira

        Activity

          People

            fpj Flavio Paiva Junqueira
            phunt Patrick D. Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: